﻿using Microsoft.AspNetCore.Mvc;

namespace lso_2u_Web应用开发.App_Code.RESTful
{
    // 模块_操作_原因 未指定模块则为通用请求
    public class ApiErrorResult
    {
        // 删除
        public static IActionResult DELETE_NOT_FIND = ApiResultHelper.ErrorResult("未找到可删除的对象");

        // 修改
        public static IActionResult UPDATE_NOT_FIND = ApiResultHelper.ErrorResult("未找到可修改的对象");

        public static IActionResult UPDATE_INFO_LACK_DATA = ApiResultHelper.ErrorResult("缺少必要数据");

        public static IActionResult UPDATE_OBJECT_EXIST = ApiResultHelper.ErrorResult("对象已存在");

        public static IActionResult UPDATE_OBJECT_DUPLICATE = ApiResultHelper.ErrorResult("对象重复");

        public static IActionResult UPDATE_NOT_CHANGE = ApiResultHelper.ErrorResult("未修改任何项");

        // 添加
        public static IActionResult INSERT_NOT_CHANGE = ApiResultHelper.ErrorResult("未添加任何项");

        // 删除
        public static IActionResult DELETE_NOT_FOUND = ApiResultHelper.ErrorResult("未找到可删除项");

        public static IActionResult DELETE_NOT_DELETE = ApiResultHelper.ErrorResult("未删除任何项");


        // 邀请码模块
        public static IActionResult INVITE_UPDATE_NOT_FIND = ApiResultHelper.ErrorResult("无效的邀请码");

        public static IActionResult INVITE_UPDATE_BINDED = ApiResultHelper.ErrorResult("邀请码已被绑定");


        public static IActionResult USER_PERMISSION_DENIED = ApiResultHelper.ErrorResult("用户权限不足");

        public static IActionResult USER_PASSWORD_ERROR = ApiResultHelper.ErrorResult("密码错误");

        public static IActionResult USER_CHAT_UPDATE_NOTCHANGE = ApiResultHelper.ErrorResult("消息发送失败, 未产生消息变更");
    }
}
